'use strict'

const mongoose = require('mongoose')

const Schema = mongoose.Schema

const Course = mongoose.model('Course', new Schema({
  name: String, // 课程名称
  code: String, // 课程编号
  createdAt: {type: Date}, // 创建日期
  manager: [{_id: Schema.Types.ObjectId, name: String}], // 负责人 -> Manager
  // demands: [Schema.Types.ObjectId], // 需求标签 -> Demand
  demand: String, // 需求英语逗号分隔,
}))

module.exports = Course